package com.hcl.orm.core.executor.page;

/**
 * @author hucl
 * @projectName jim-orm
 * @description: TODO
 * @date 2021/5/1715:28
 */
public class PageParam {
    private final static int PAGE_NO = 0;
    private final static int PAGE_SIZE = 1000;

    /**
     * 查询数量
     */
    private int pageSize;
    /***
     * 页号
     */
    private int pageNo;

    public PageParam() {
        this.pageSize = PAGE_SIZE;
        this.pageNo = PAGE_NO;
    }

    public PageParam(int pageSize, int pageNo) {
        this.pageSize = pageSize;
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public int getPageNo() {
        return pageNo;
    }
}
